package cn.wolfcode.fegin;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.SeckillProductVo;
import cn.wolfcode.fegin.fallback.SeckillFeginFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author: 普发忠
 * @Date: 2021/11/09/15:21
 */

@FeignClient(name = "seckill-service",fallback = SeckillFeginFallback.class)
public interface SeckillFeginApi {
    
    @RequestMapping(value ="/seckillProduct/querySeckillProduct")
    Result<List<SeckillProductVo>> querySeckillProduct();
}
